package com.niiwoo.civet.trade.enums.creditorSale;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by bincun on 2018/5/16.
 */
@AllArgsConstructor
@Getter
public enum SaleDetailStatusEnum {
    SALE_APPLYING((byte)0,"转让申请中"),
    SELLING((byte)1,"转让中（未被认购）"),
    PRE_CREDIT_ASSIGNMENT_HANDING((byte)2,"债权认购处理中"),
    CONFIRM_CREDIT_ASSIGNMENT_HANDING((byte)3,"交易处理中（债权转让）"),
    SALE_SUCCESS((byte)4,"出让成功"),
    SALE_END((byte)5,"已结束"),
    ;
    private Byte value;
    private String remark;
    public static SaleDetailStatusEnum enumOf(byte value) {
        for (SaleDetailStatusEnum statusEnum : values()) {
            if (statusEnum.value.equals(value)) {
                return statusEnum;
            }
        }
        return null;
    }
}
